package com.ksr.logistics.service;

import com.ksr.logistics.pojo.BaseData;
import com.ksr.logistics.pojo.Result;

import java.util.List;

public interface BaseDataService {

    List<BaseData> selBaseDatas();

    List<BaseData> selPageBaseData(Integer page, Integer pageSize, String keyWord);

    Result deleteById(Long id);

    Result deleteByIds(List<Long> ids);

    int insertBaseData(BaseData baseData);

    int updateBaseData(BaseData baseData);

    BaseData selById(Long id);

    List<BaseData> selByBaseName(String baseName);

    List<BaseData> selChilds(Long baseId);

    List<BaseData> selParentData();

    List<BaseData> selBaseDataByParentName(String name);
}
